import request from '@/utils/http/axios';
class ShopApi {

    static list(page, size) {
        return request({
            url: "/shop/list",
            params: {page, size},
            method: "get"
        })
    }
    static addOrUpdate(shop){
        return request({
            url: "/shop/addOrUpdate",
            method: "post",
            data: shop
        })
    }
}

export default ShopApi;